﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xty.MSBuilder
{
    [Serializable]
    public class ServiceInfo
    {
        public string Name { get; set; }
        public string Path{ get; set; }
        public string Dingtalk{ get; set; }
        public bool IsRunning { get; set; }
    }

    [Serializable]
    public class ConfigInfo
    {
        public string Address { get; set; }
        public string Token { get; set; }
        public List<ServiceInfo> Services { get; set; }

        public string AddressText
        {
            get
            {
                if (string.IsNullOrEmpty(Address))
                    return "http://+:8080/";
                return Address;
            }
        }
    }
}
